package com.lebang.mapper;

import com.lebang.configuration.datasource.DataSource;
import com.lebang.entity.task.TaskCommentsDetail;
import com.lebang.example.TaskCommentsDetailExample;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

import java.util.List;
@Repository
public interface TaskCommentsDetailMapper {
    long countByExample(TaskCommentsDetailExample example);

    int deleteByExample(TaskCommentsDetailExample example);

    int deleteByPrimaryKey(Integer id);

    @DataSource("commonDB")
    int insert(TaskCommentsDetail record);

    int insertSelective(TaskCommentsDetail record);

    List<TaskCommentsDetail> selectByExample(TaskCommentsDetailExample example);

    @DataSource("commonDB")
    TaskCommentsDetail selectByPrimaryKey(Integer id);

    int updateByExampleSelective(@Param("record") TaskCommentsDetail record, @Param("example") TaskCommentsDetailExample example);

    int updateByExample(@Param("record") TaskCommentsDetail record, @Param("example") TaskCommentsDetailExample example);

    @DataSource("commonDB")
    int updateByPrimaryKeySelective(TaskCommentsDetail record);

    int updateByPrimaryKey(TaskCommentsDetail record);

    @DataSource("commonDB")
    TaskCommentsDetail selectByCommentsId(Integer id);

    @DataSource("commonDB")
    Long getDetailCount(Integer commentsId);

    @DataSource("commonDB")
    List<TaskCommentsDetail> getDetail(@Param("page") Integer pageSize,@Param("limit") Integer limit,@Param("commentsId") Integer commentsId);

    @DataSource("commonDB")
    int updateById(@Param("id") Integer id, @Param("status") String status);

    @DataSource("commonDB")
    int deletedData(@Param("idList") List<Integer> idList);
}